<? if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<ul style="width: 372px; height: 165px; "><? if(is_array($list)) { foreach($list as $album) { ?><li value="<?=$album['id']?>" default="<?=$album['title']?>"><?=$album['title']?></li>
<? } } ?>
</ul>

<div class="comboxAdd">
     <span class="innerborder">
         <input class="deftest" type="text" value="" size="10" maxlength="20 name="album_name">
     </span> 
     <select class="album_cid"><? if(is_array($_FANWE['cache']['albums']['category'])) { foreach($_FANWE['cache']['albums']['category'] as $category) { ?><option value="<?=$category['id']?>"><?=$category['name']?></option>
<? } } ?>
 </select>
     <input class="addsort" type="button" value="新建杂志社" onclick="$.New_Create_Album(this,publishCreateAlbumHadnler);">
</div>

<script>


function publishCreateAlbumHadnler(obj,result)
{
var xhtml = '<option value="'+result.aid+'">'+result.title+'</option>';
$(".album_cid").append(xhtml);
$(".comboxText").val(result.title);
$("#albumid").val(result.aid);
$.checkForm();
$("#pannel").hide();
}

</script>